<?php

	$connexion = mysql_connect("localhost", "root", "");
	mysql_select_db("etunote", $connexion);
	extract($_GET);
	getDonnee($etu);
    function getDonnee($etu) {
	
		$sql= "select note from notes_etudiant WHERE etudiant = '".$etu."'";
			
	$rs = mysql_query($sql);
	$arrG = array();
	While ($arr = mysql_fetch_array($rs)){
		$arrG[] = $arr;
	}
	echo json_encode($arrG); 
	
}

?>
